#include <cctype>
#include <iostream>
#include <string>
using namespace std;
int level(string str)
{
    int ret = 0;
    int n = str.size(); // 长度
    if (n <= 4)
        ret += 5;
    else if (n >= 5 && n <= 7)
        ret += 10;
    else
        ret += 25;
    //cout << "长度" << n << "分数" << ret << endl;
 
    int low = 0, gre = 0, cnt0 = 0; // 0字母
    for (auto& e : str) 
    {
        if (islower(e))
            ++low;
        else if (isupper(e))
            ++gre;
        cnt0 = low + gre;
    }
    if (low && gre == 0)
        ret += 10;
    else if (gre && low == 0)
        ret += 10;
    else if (gre && low)
        ret += 20;
 
    int cnt1 = 0; // 1数字
    for (auto& e : str) 
    {
        if (isdigit(e))
            ++cnt1;
    }
    if (cnt1 == 1)
        ret += 10;
    else if (cnt1 > 1)
        ret += 20;
 
    int cnt2 = 0; // 2符号
    for (auto& e : str)
    {
        if (e >= 0x21 && e <= 0x2F
         || e >= 0x3A && e <= 0x40
         || e >= 0x5B && e <= 0x60
         || e >= 0x7B && e <= 0x7E)
            ++cnt2;
    }
    if (cnt2 == 1)
        ret += 10;
    else if (cnt2 > 1)
        ret += 25;
 
    if (low && gre && cnt1 && cnt2) // 加分
        ret += 5;
    else if (cnt0 && cnt1 && cnt2)
        ret += 3;
    else if (cnt0 && cnt1)
        ret += 2;
    return ret;
}
 
int main()
{
    string str;
    cin >> str;
    int res = level(str);
    //cout << res;
    if (res >= 90)
        cout << "VERY_SECURE";
    else if (res >= 80)
        cout << "SECURE";
    else if (res >= 70)
        cout << "VERY_STRONG";
    else if (res >= 60)
        cout << "STRONG";
    else if (res >= 50)
        cout << "AVERAGE";
    else if (res >= 25)
        cout << "WEAK";
    else
        cout << "VERY_WEAK";
    return 0;
}